<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // 定义对象，key可以不加双引号
        const lilei = {
            name : "李雷",
            age : 20,
            height:1.82,
            eat:function (food) {
                console.log("吃"+food)
            }
        }

        console.log("姓名：",lilei.name)
        lilei.eat("日本福岛大闸蟹")

    </script>
</head>
<body>

</body>
</html>